class Dog {
    private String name;
    private int age;
    private String Color;
    public Dog(String name, int age, String furColor) {
        this.name = name;
        this.age = age;
        this.Color = Color;
    }
    public void makeSound() {
        System.out.println("汪汪汪");
    }
    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }
    public String getFurColor() {
        return Color;
    }
}
class Cat {
    private String name;
    private int age;
    private String Color;
    public Cat(String name, int age, String furColor) {
        this.name = name;
        this.age = age;
        this.Color = Color;
    }
    public void makeSound() {
        System.out.println("喵喵喵");
    }
    public String getName() {
        return name;
    }
    public int getAge() {
        return age;
    }
    public String getFurColor() {
        return Color;
    }
}
public class d1 {
    public static void main(String[] args) {
        Dog dog = new Dog("旺财", 2, "棕色");
        System.out.println("狗的名字是" + dog.getName() +
                "，年龄是" + dog.getAge() +
                "，毛色是" + dog.getFurColor());
        dog.makeSound();
        Cat cat = new Cat("咪咪", 1, "白色");
        System.out.println("猫的名字是" + cat.getName() +
                "，年龄是" + cat.getAge() +
                "，毛色是" + cat.getFurColor());
        cat.makeSound();
    }
}